<?php
//var_dump();
class Category  extends BaseModel
{
	public $res;
	public $redis_key="index_category";
	public function getSource()
	{
		return "f_categories";
	}
	public function initialize()
	{
		parent::initialize();

	}
    //获取所有分类
    public function goods_categories_all($columns='*')
    {
        $list = $this::find(
            array(
                '1=1',
                "columns" => $columns,
            )
        );
        return $list;
    }
}
